package com.example.synatx.datetime;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * @Author guoxh
 * @Date 2020/2/18 11:18
 * @Desc
 **/
public class DateTimeFormatTest {

    public void test01(){
        LocalDate localDate = LocalDate.now();
        String s1 = localDate.format(DateTimeFormatter.BASIC_ISO_DATE);//20200218
        String s2 = localDate.format(DateTimeFormatter.ISO_LOCAL_DATE);//2020-02-18
    }


}
